﻿$(document).ready(function () {
    $('dd:not(:first)').hide();
    $('dt a').click(function () {
        $('dd:visible').slideUp('slow');
        $(this).parent().next().slideDown('slow');
        return false;
    });

});

function SetUniqueRadioButton( current)
{
	
        for(var i = 0; i < document.forms[0].elements.length; i++) {
	        var elm = document.forms[0].elements[i];
	        if (elm.type == 'radio')
        {
        
        elm.checked = false;
        
        }
        }
	
    current.checked = true;
}

$(document).ready(function(){
    $("#tabs li").click(function() {
        $("#tabs li").removeClass('active');
        $(this).addClass("active");
        $(".tab_content").hide();
        var selectedTab = $(this).find("a").attr("href");
        $(selectedTab).fadeIn();
        return false;
    });
});

function IsNumeric(sText)
    {
       var validChars = "0123456789";
       var isNumber=true;
       var key;
     
       for (var i = 0; i < sText.length && isNumber == true; i++) 
          { 
          key = sText.charAt(i); 
          if (validChars.indexOf(key) == -1) 
             {
                     alert('Number Page is not valid');
                 isNumber = false;
             }
          }
       return isNumber;
    }